import numpy as np

from autograd.tensor import Tensor

t1 = Tensor(np.ones((2,1))*2,requires_grad=True)
t2 = Tensor(np.ones((1,2)),requires_grad=True)
print(t1,t2)
t3 = t1 + t2
print(t3)
t4 = t3.sum()
print(t4)
t4.backward()
print(t1.grad)
print(t2.grad)